package com.lyj.sc.Newfeatures;

import javafx.util.Pair;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @program: code-random
 * @description:
 * @author: lyj
 * @create: 2022-07-26 09:28
 * @version: 1.0
 * @Modifier By:
 **/
public class Solution {
    public static void main(String[] args) {
        //3
        HashMap<String, Object> map = new HashMap<>(16);
        if(map.isEmpty()){
            System.out.println("dasd");
        }
        //4
        List<Pair<String, Double>> pairArrayList = new ArrayList<>(3);
        pairArrayList.add(new Pair<>("version", 12.10));
        pairArrayList.add(new Pair<>("version", 12.19));
        pairArrayList.add(new Pair<>("version", 6.28));

//        pairArrayList.stream().collect(Collectors.toMap(Pair::getKey,Pair::getValue,(v1,v2)->v2));
        pairArrayList.stream().forEach(e-> System.out.println(e));


    }
}
